import request from "@/utils/request"; // 引入封装的请求模块

export default {
  getEvents() {
    return request.get("/events/list");
  },
  getHistory(params) {
    return request.get("/messages/history", { params });
  },
  sendToUser(data) {
    return request.post("/messages/sendToUser", data);
  },
  sendToActivityUsers(data) {
    return request.post("/messages/sendToEventUsers", data);
  },
};
